package collection;


public class emp implements Comparable<emp>{
		
	int id1;
	String id=""+id1;
	String name;
	String addr;
	String gender;
	
	public emp(String id,String name,String addr,String gender){
		this.id=id;
		this.name=name;
		this.addr=addr;
		this.gender=gender;
			}
	
public String toString(){
	return this.id;
}

/*public String toString(){
	return this.name;
}

public String toString(){
	return this.addr;
}*/

/*public int compareTo(emp e){
	return name.compareTo(e.name);
}*/

	public int compareTo(emp e1){
			return (Integer)id.compareTo(e1.id);
		}



}


	
